package com.wzdigit.wms.basic.client.request.basic;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * 设置用户数据权限输入
 * @author yangdongjie
 * @param <T>
 * @GetWarehouseListRequest.java
 * @2020年12月31日下午3:40:49
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler", "fieldHandler"}, ignoreUnknown = true)
public class SetRootUserDataPermissionRequest implements Serializable {

	private static final long serialVersionUID = 4763288247509881332L;

	/**
     * 用户ID
     */
    @ApiModelProperty(value = "用户ID", required = true)
    @NotNull(message = "用户ID不能为空")
	private Integer userId;
	
    /**
     * 分类权限集合
     */
    @ApiModelProperty(value = "分类权限集合", required = true)
    @NotEmpty(message = "分类权限集合不能为空")
	private List<SetUserDataPermissionRequest> dataPerms;
}
